@echo off

set VERSION=v1

if "%1"=="clean" (
	del %VERSION%.aux
	del %VERSION%.dvi
	del %VERSION%.log
	goto exit
)

del out/%VERSION%.pdf
"c:\Program Files\MiKTeX 2.6\miktex\bin\latex.exe" %VERSION%.tex
"c:\Program Files\MiKTeX 2.6\miktex\bin\dvipdfm.exe" -o out/%VERSION%.pdf %VERSION%.dvi 


:exit
echo Done!